﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>产品详情</title>
<link href="__PUBLIC__/home/css/style.css" type="text/css" rel="stylesheet" />
<!-- <script src="__PUBLIC__/home/js/jquery-1.5.1.js" type="text/javascript"></script> -->
<!-- <script src="__PUBLIC__/home/js/jquery-1.7.min.js" type="text/javascript"></script> -->
<script src="__PUBLIC__/home/js/common.js"  type="text/javascript"></script>
<script typet="text/javascript" src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/home/css/detail.css" type="text/css" />

<script src="__PUBLIC__/home/js/jquery.jqzoom.js" type="text/javascript"></script>
<script src="__PUBLIC__/home/js/use_jqzoom.js" type="text/javascript"></script>

<script src="__PUBLIC__/home/js/jquery.livequery.js" type="text/javascript"></script>
<script src="__PUBLIC__/home/js/switchImg.js" type="text/javascript"></script>
<script src="__PUBLIC__/home/js/jquerysession.js" type="text/javascript"></script>
<script LANGUAGE="JavaScript">
<!-- Hide
function killErrors() {
return true;
}

</script>
</head>
<body class="index">
<!-- header -->
<div class="w1200 product">
    <!--one-->
            <div class="one">
            	<div class="left">
                    <!--放大镜-->
                	<div class="pro_detail">
                        <div class="pro_detail_left">
                            <div class="jqzoom"><img src="__PUBLIC__/upload/{$comimg[0]['com_img_name']}" class="fs" alt="" jqimg="__PUBLIC__/upload/{$comimg[0]['com_img_name']}" id="bigImg"/></div>
                            <span>
                                 <ul class="imgList">
                                 <?php $i=1; ?>
                                 <?php foreach($comimg as $key => $value){ ?>
                                     <?php if($i=1){?>
                                        <li class="on"><img src="__PUBLIC__/upload/<?php echo $value['com_img_name'];?>" alt="<?php echo $value['com_img_keyword'];?>" /></li>
                                     <?php }elseif($i < $countimg){?>
                                        <li><img src="__PUBLIC__/upload/<?php echo $value['com_img_name'];?>" alt="<?php echo $value['com_img_keyword'];?>" /></li>
                                     <?php }elseif($i== $countimg){?>
                                        <li class="last"><img src="__PUBLIC__/upload/<?php echo $value['com_img_name'];?>" alt="<?php echo $value['com_img_keyword'];?>" /></li>
                                     <?php } $i++;?>
                                 <?php } ?>
                                 </ul>
                             </span>
                        </div>
                    </div>
                    <!--放大镜-->
                </div>
                <div class="right">
                	<div class="title">{$commod[0]['com_name']}</div>
                    <div class="info">{$commod[0]['com_keywords']}</div>
                    <div class="price">
                    	<table width="100%" height="61" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="8%">售价：</td>
                            <td width="41%"><b>￥{$commod[0]['com_price']}</b></td>
                            <td width="7%">原价：</td>
                            <td width="44%"><del>￥6599.00</del></td>
                          </tr>
                        </table>
                  	</div>
                    <div class="send"><small>配送至：</small><input value="安徽省合肥市庐阳区" name="" /><span>由 <u>奥凡尼旗舰店</u>从北京市市发货，并提供售后服务。</span><div class="clear"></div></div>
                    <div class="size"><small>选择尺码：</small><p><span>进口厚皮 双人位+贵妃位+边几</span><span class="on">进口厚皮 双人位+贵妃位+边几</span><span>进口厚皮 全套系列</span><span>进口厚皮 双+贵+单+边几</span></p><div class="clear"></div></div>
                    <form action="{$addShopcar}" method="post" id="form">
                       <div class="number">
                            <small>数量：</small>
                            <input type="text" class="num" id="num" name="num" value="1"/>
                            <input type="hidden" class="comid" id="comid" name="comid" value="<?php echo $commod[0]['id']; ?>"/>
                            <span class="jian" id="jian"></span>
                            <span class="jia" id="jia"></span>
                            <div class="ku"><p>件&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;库存<a id="store">{$commod[0]['com_store']}</a>件</p></div>
                            <div class="clear"></div>
                        </div>
                        <div class="sale"><small>销量：</small><span class="on">21212</span><div class="clear"></div></div>
                        <div class="sub">
                            <button><a class="btn01" style="cursor: pointer;"></a></button>
                            <button><a class="btn02" style="cursor: pointer;"></a></button>
                        </div> 
                    </form>
                </div>
                <div class="clear"></div>
            </div>
            <div class="share w1200">
               <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                            <td width="13%">收藏商品 已有<b>0</b>人气</td>
                            <td width="87%">
                                <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone"></a><a href="#" class="bds_tsina" data-cmd="tsina"></a><a href="#" class="bds_tqq" data-cmd="tqq"></a><a href="#" class="bds_renren" data-cmd="renren"></a><a href="#" class="bds_weixin" data-cmd="weixin"></a></div>
                <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdPic":"","bdStyle":"0","bdSize":"16"},"share":{},"image":{"viewList":["qzone","tsina","tqq","renren","weixin"],"viewText":"分享到：","viewSize":"16"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["qzone","tsina","tqq","renren","weixin"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/__PUBLIC__/home/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script><span>分享到:</span>
                    </td>
                 </tr>
                </table>
			</div>
            
            <!--two-->
            <div class="two">
            	<div class="left">
                <dl>
                	<dt>相关产品</dt>
                    <dd>
                        <php>foreach($commodrand as $key => $value){</php>
                            <div class="item">
                                <ul>
                                    <li><img src="__PUBLIC__/upload/<?php echo $value['com_img_name'] ?>" width="160" height="160"/></li>
                                    <li class="title"><a href="#"><?php echo $value['com_keywords'] ?></a></li>
                                    <li class="price">￥<?php echo $value['com_price'] ?></li>
                                </ul>
                            </div>
                        <php>}</php>
                    </dd>
                   </dl>
                </div>
                <div class="right">
                <dl>
                	<dt><a class="cur" href="#a01">商品详情</a><a href="#a02">规格参数</a><a href="#a03">累计评价<font>（2654）</font></a><a href="#a04">售后保障</a><a href="#a05">易易城消费返现规则</a></dt>
                    <dd class="dd01">
                    	<a name="a01"></a>
                        <!-- <div style="width: 100%;height: auto;"> -->
                                <?php echo htmlspecialchars_decode($commod[0]['com_details']); ?>
                        <!-- </div> -->
                    </dd> 
                    <dd class="dd02">
                    	<div class="dd02_t">累计评价 </div>
                        <!--评价-->
						<div class="rate-header rate-header-tags">
                        <div class="rate-score">
                            <h4>与描述相符</h4>
                            <strong>4.8</strong>
                            <p><span class="s48"></span></p>
                        </div>
                        <div class="rate-tag-box">
                                <div class="rate-tag-label">
                                    <span>大家都写到</span>
                                </div>
                                <div class="rate-tag-list" style="height: 70px;">
                                    <div class="rate-tag-inner">
                                        <span class="tag-posi">很舒服(189)</span>
                                        <span class="tag-posi">整体不错(160)</span>
                                        <span class="tag-posi">面料好(92)</span>
                                        <span class="tag-posi">尺码很准(52)</span>
                                        <span class="tag-posi">版式好(45)</span>
                                        <span class="tag-posi">颜色很好(36)</span>
                                        <span class="tag-posi">颜色一般(20)</span>
                                        <span class="tag-posi">尺码很准(52)</span>
                                        <span class="tag-posi">版式好(45)</span>
                                        <span class="tag-posi">颜色很好(36)</span>
                                        <span class="tag-posi">颜色一般(20)</span>
                                    </div>
                                </div>
                            <div class="clear"></div>
                        </div>
                    </dd>
                    <dd class="dd03">
                        <div class="pj_list">
                            <div class="pj_one">
                                <dl>
                                	<dt><a class="cur" href="#a01">全部<font>（2654）</font></a><a href="#a02">好评<font>（2154）</font></a><a href="#a03">中评<font>（2654）</font></a><a href="#a04">差评<font>（16）</font></a><a href="#a05">有图评价<font>（919）</font></a></dt>
                                </dl>
                                <div class="clear"></div>
                            </div>
                            <div class="pj_two">
                                <div class="pj_item">
                                    <div class="two1">初次评价：<br />06.16</div>
                                    <div class="two2"><p>燕窝已经收到了，包装的很精美，品相非常不错，而且每盏都有溯源码，比商城买的实惠，发货速度很给力，炖煮后有淡淡的蛋清味，吃完后再来追评哈</p>
                                    <p><img src="__PUBLIC__/home/images/ico36.jpg"/><img src="__PUBLIC__/home/images/ico36.jpg"/></p>
                                    </div>
                                    <div class="two3">s******88(匿名)<br /><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/></div>
                                    <div class="clear"></div>
                                </div>
                                <div class="pj_item">
                                    <div class="two1">初次评价：<br />06.16</div>
                                    <div class="two2"><p>燕窝已经收到了，包装的很精美，品相非常不错，而且每盏都有溯源码，比商城买的实惠，发货速度很给力，炖煮后有淡淡的蛋清味，吃完后再来追评哈</p>
                                    <p><img src="__PUBLIC__/home/images/ico36.jpg"/><img src="__PUBLIC__/home/images/ico36.jpg"/></p>
                                    </div>
                                    <div class="two3">s******88(匿名)<br /><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/></div>
                                    <div class="clear"></div>
                                </div>
                                <div class="pj_item">
                                    <div class="two1">初次评价：<br />06.16</div>
                                    <div class="two2"><p>燕窝已经收到了，包装的很精美，品相非常不错，而且每盏都有溯源码，比商城买的实惠，发货速度很给力，炖煮后有淡淡的蛋清味，吃完后再来追评哈</p>
                                    <p><img src="__PUBLIC__/home/images/ico36.jpg"/><img src="__PUBLIC__/home/images/ico36.jpg"/></p>
                                    </div>
                                    <div class="two3">s******88(匿名)<br /><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/></div>
                                    <div class="clear"></div>
                                </div>
                                <div class="pj_item">
                                    <div class="two1">初次评价：<br />06.16</div>
                                    <div class="two2"><p>燕窝已经收到了，包装的很精美，品相非常不错，而且每盏都有溯源码，比商城买的实惠，发货速度很给力，炖煮后有淡淡的蛋清味，吃完后再来追评哈</p>
                                    <p><img src="__PUBLIC__/home/images/ico36.jpg"/><img src="__PUBLIC__/home/images/ico36.jpg"/></p>
                                    </div>
                                    <div class="two3">s******88(匿名)<br /><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/></div>
                                    <div class="clear"></div>
                                </div>
                                <div class="pj_item">
                                    <div class="two1">初次评价：<br />06.16</div>
                                    <div class="two2"><p>燕窝已经收到了，包装的很精美，品相非常不错，而且每盏都有溯源码，比商城买的实惠，发货速度很给力，炖煮后有淡淡的蛋清味，吃完后再来追评哈</p>
                                    <p><img src="__PUBLIC__/home/images/ico36.jpg"/><img src="__PUBLIC__/home/images/ico36.jpg"/></p>
                                    </div>
                                    <div class="two3">s******88(匿名)<br /><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/><img src="__PUBLIC__/home/images/ico37.jpg"/></div>
                                    <div class="clear"></div>
                                </div>
                                
                                <!--page-->
                                <div class="page"><a href="#">上一页</a><a href="#" class="on">1</a><a href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#">6</a><a href="#">7</a><a href="#">7</a><a href="#">...</a><a href="#">下一页</a></div>
                                <!--page2-->
                            </div>
                        </div>
                    </dd>
                   </dl>
                   
                <div class="shenmin">
                   	<p><b>安全提示：</b>交易中请勿使用阿里旺旺以外的聊天工具沟通，不要接收可疑文件和不要点击不明来源的链接，支付前核实好域名和支付详情。 淘宝不会以订单有问题，让您提供任何银行卡、密码、手机验证码！遇此情况请终止通话或举报到淘宝网 常见骗术<br />推荐安全软件：  阿里钱盾阿里钱盾  UC浏览器UC浏览器  腾讯电脑管家腾讯电脑管家  360网盾360网盾 安全软件中心</p>

					<p><b>内容申明：</b>淘宝为第三方交易平台及互联网信息服务提供者，淘宝（含网站、客户端等）所展示的商品/服务的标题、价格、详情等信息内容系由店铺经营者发布，其真实性、准确性和合法性均由店铺经营者负责。淘宝提醒用户购买商品/服务前注意谨慎核实。如用户对商品/服务的标题、价格、详情等任何信息有任何疑问的，请在购买前通过阿里旺旺与店铺经营者沟通确认；淘宝存在海量店铺，如用户发现店铺内有任何违法/侵权信息，请立即向淘宝举报并提供有效线索。</p>
                </div>
                <div class="clear"></div>
            </div>
</div>


<script type="text/javascript">
    $('#jia').on('click',function(){
         var jian=parseInt($('#num').attr('value'));
         if (jia > 1) {
           $('#num').attr('value',jian-1); 
        }else{
            alert('已经是 1 了，不能再减了！');
        }
    });
    $('#jian').on('click',function(){
        var jia=parseInt($('#num').attr('value'));
        var store=parseInt($('#store').text());
        if (jia < store) {
           $('#num').attr('value',jia+1); 
        }else{
            alert('库存不足！');
        }
    });

</script>
<script type="text/javascript">
    $("#form").on('submit',function(){
        $.ajax({
            type:'post',
            url:$('#form').attr("action"),
            data:$('#form').serialize(),
            dataType:'json',
            success:function(data){
                if (data.status=='ok') {
                    var $top2=parseInt($('.shopcar_all  span').text())+1;
                    $('.shopcar_all  span').text($top2);
                    var $top=parseInt($('.top_car  b').text())+1;
                    $('.top_car  b').text($top);
                    alert("恭喜您！加入购物车成功！");
                }else{
                    alert("加入购物车失败！");
                }
                
            }
        });
        return false;
    });
</script>
<script type="text/javascript">
$(function(){
var imgWid = 0 ;
var imgHei = 0 ; //变量初始化
var big = 6.2;//放大倍数
$(".pj_item .two2 p img").hover(function(){
$(this).stop(true,true);
var imgWid2 = 0;var imgHei2 = 0;//局部变量
imgWid = $(this).width();
imgHei = $(this).height();
imgWid2 = imgWid * big;
imgHei2 = imgHei * big;
$(this).css({"z-index":2,"position":"relative"});
$(this).animate({"width":imgWid2,"height":imgHei2,"margin-left":-imgWid2/3,"margin-top":-imgWid2/3});
},function(){$(this).stop().animate({"width":imgWid,"height":imgHei,"margin-left":0,"margin-top":0,"z-index":1});
});
})
</script>
</body>
</html>
